| lcDrwAddBlockFile | Home |
|
HANDLE lcDrwAddBlockFile ( HANDLE hDrw, LPCWSTR szName, LPCWSTR szFileName, int Overwrite, HWND hWndParent ); |
| hDrw | |||||||||
| Handle to a drawing object. | |||||||||
| szName | |||||||||
|
Block name.
If the block already exist in the drawing hDrw, it will be overwritten,
depend on the Overwrite parameter. | |||||||||
| szFileName | |||||||||
| The filename of another drawing. The drawing must have any of supported file format. | |||||||||
| Overwrite | |||||||||
Overwrite mode. Defines LiteCAD behaviour if copied block already exist in the drawing.
Can be one of the following constants:
| |||||||||
| hWndParent | |||||||||
| Handle to a parent window for the "Overwrite block" dialog. Specify NULL if the LC_BLOCK_OVERWRITEDLG mode is not used. | |||||||||
|
Handle to a new block. If the function fails, the return value is NULL. |
| If the copied block has references to other blocks, then they also will be copied. Also will be copied all referenced named objects, like layers, linetypes, text stylles, etc. |
| Code sample, lcDrwAddBlockFromFile,  lcDrwAddBlockFromDrw,  Block reference |